
<!-- 封装 icon 图标 -->

<template>
  <div>
    <el-icon>
      <!-- 动态组件 -->
      <component :is="name"></component>
    </el-icon>
  </div>
</template>

<script setup>

defineProps({
  name: {
    type: String,
    default: "help",
  },
});
</script>

<style lang="less" scoped></style>
